package com.wyc.apiboss.controller;

import com.wyc.apiboss.service.CarService;
import com.wyc.internalCommon.request.CarDTO;
import com.wyc.internalCommon.result.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CarController {

    @Autowired
    private CarService carService;

    /**
     * 添加车辆信息
     * @param carDTO
     * @return
     */
    @PostMapping("/car")
    public ApiResult addCar(@RequestBody CarDTO carDTO){
        return carService.addCar(carDTO);
    }


}
